The suspect at the centre of a major manhunt by police investigating the terror attacks in Catalonia was the driver of the van that killed 13 people in Barcelona, an official has said.