Stricter COVID-19 lockdown measures coincided with an increase in serious self-harm triggered by social isolation in children and young people, according to a new study.