Manchester City beat West Ham 2-0 at the Etihad in the club's first game since they were banned from European competition for two years by Uefa.