Thousands of protesters have marched against new coronavirus restrictions in Germany, sometimes leading to clashes between police and demonstrators.