Dozens of people have been injured in Barcelona after a van ploughed into pedestrians in a suspected terror attack.