Building resilience to coastal hazards using tide gauges