Protesters have targeted tourists with water guns in Barcelona as part of mass demonstrations over the number of visitors to the Spanish city.