A city’s rivers and parks help store water in times of droughts and floods — but other measures are also key to urban resilience.