Assessing Resilience of Past Societies to Climatic Change