Roger Federer reclaims the crown at his hometown tournament, the Swiss Indoors Basel, with victory over defending champion Novak Djokovic.