Manchester City were beaten by Brentford at the Etihad in their final game before the World Cup.