Transition from hunter-gatherer societies to settled agriculture