Demonstrators clashed with police in Barcelona as a fifth day of protests over the jailing of separatist leaders turned violent.