France is considering imposing a state of emergency as hundreds of people were arrested during the country's worst riots in 50 years.