Thousands of people have taken to the streets of Paris and Rome in protests over inflation that has sent prices skyrocketing.