Catalonia's independence referendum was off to a chaotic start as police tried to stop people from voting.