Large-scale effects of migration and conflict in pre-agricultural groups: Insights from a dynamic model