Hundreds of students have been arrested while teachers have been attacked and schools set alight as protests over the state of France's schools turn violent.