A 12-year-old boy has been arrested and charged in connection with a fire that tore through a number of town centre shops.