NHS ‘only just coped’ during Covid-19 pandemic, inquiry concludes