Cities across Spain are grappling with electric scooters that have popped up on sidewalks across the country, helping riders zip around but exasperating drivers and pedestrians.