Some hospitals in England were within "six or seven hours" of running out of personal protective equipment in the early stages of the COVID pandemic, a former health secretary has admitted.