Measurement of the νμ charged current quasielastic cross section on carbon with the T2K on-axis neutrino beam