Robert hits hat-trick to pass 300 goals for Bayern Munich