Rio Ferdinand’s late goal helped Manchester United beat Swansea City 2-1 as the famous old stadium also bid farewell to another legend - Paul Scholes.