What factors contributed to the growth of towns in early European history?