Pandemic lockdowns and restrictions adversely affected children and young people, with a rise in self-harm cases admitted to hospitals.