Harry Kane scored as Bayern Munich beat Freiburg 2-1, moving six points clear of Bayer Leverkusen.