How did communities respond to the climate changes in the late third millennium b.c e?