Almost 180,000 patients waiting for routine treatment at Black Country hospitals as more than 40,000 join in a year