Several people have been injured after a car drove into a crowd at a carnival procession in Germany, police said.