Official: Ferdinand to leave Man Utd