Police fired rubber bullets, wrestled protesters, smashed doorways and carted off ballot boxes in several parts of Barcelona on Sunday.