Tens of thousands of people have staged a protest in Barcelona over the rocketing cost of renting an apartment in the popular tourist destination.