Companies such as Costco and Walmart are seeing a surge in sales for generators, canned goods and other disaster-preparedness staples.