Government “missed opportunity” to tackle NHS and social care staff shortages