Social and biophysical vulnerability of prehistoric societies to rapid climate change