James Rodriguez scored a hat-trick as Bayern Munich thrashed Mainz 6-0 to return to top spot in the Bundesliga.