A Harry Kane treble helped Bayern Munich pick up a high-scoring win against Mainz that keeps the record champions in touch with Bayer Leverkusen at the top of the Bundesliga standings.