France deploys 40 000 police officers following days of violent riots