Two groups of demonstrators have clashed in Barcelona, as people took to the streets to protest against Catalonia's push for independence.