Federer withdraws from Olympics