Serge Gnabry scored a hat-trick as Bayern Munich consolidated their place at the Bundesliga summit with a thumping 6-1 victory over Werder Bremen.