Pep Guardiola says Manchester City were punished for missing chances in the first half, as city rivals United came back to win 3-2 in Saturday's derby.