The response to the pandemic led to "enormous outlays of public money which exposed it to the risk of fraud and error", a report says.