Schools close to South Africa's borders are refusing to admit hundreds of students because they do not have local documentation.