The Brit brings the curtain down on a storied MotoGP™ career before taking up a test rider role with Yamaha next year