Manchester United have sacked head coach Michael Carrick, the club have confirmed.