The resilience to flooding of historical archives