Children referred to social care to fail GCSE