Andy Murray says he would prefer to retire at Wimbledon or the Paris Olympics as his tennis career draws towards an end.