A hat-trick from Thomas Muller helped holders Bayern Munich to ease through the first round of the German Cup.