Switzerland's Roger Federer has fallen to No 3 in the world after exiting Wimbledon at the quarter-final stage.