"Cristiano Ronaldo is to leave Manchester United by mutual agreement, with immediate effect," said a United statement.