Tens of thousands protested peacefully across France but pockets of violence broke out as demonstrators clashed with police.