A superb team performance helped reigning European champions Bayern Munich to a 3-1 win over Manchester City in Group D at the Etihad Stadium.