Rainstorms, flash floods, and broken pipes or appliances can cause thousands of dollars in damages to your home. Here’s what you can do.