Wolverhampton Wanderers have sacked manager Mick McCarthy in a bid to avoid Premier League relegation.