Measurements of the T2K neutrino beam properties using the INGRID on-axis near detector