A teenager was taken to hospital after being hit by a car in a Swindon retail park.