Swiss great Roger Federer thrashed Alexander Zverev to win his ninth title at the Wimbledon warm-up tournament in Halle on Sunday.