Harry Kane scored two penalties and Luis Diaz netted a hat-trick as Bayern Munich romped to a 5-1 win over 10-man Hoffenheim.