Theresa May has been accused of having “contempt for policing” after she denied a fall in officer numbers was linked to rising knife crime.