Teacher shortage long predated the pandemic, but the issue has been exacerbated by the need to reduce the number of pupils gathered at any one time