Protesters clashed with police in Barcelona over the imprisonment of independence leaders in the Catalonia region.