France is imposing curfews in several cities after a weekend of rioting and looting during cost-of-living protests, the worst violence in years.