Nani set to leave Man Utd at end of season