Mourners have gathered for a mass in Barcelona to remember the victims of the terror attacks as a police manhunt continues.