Measurement of the intrinsic electron neutrino component in the T2K neutrino beam with the ND280 detector