Schools did not know where “a great many” young people were or what they were doing during the Covid-19 pandemic, an inquiry has heard.