Thousands of children ‘missing’ from education