Roger Federer bids tearful farewell to tennis