Heavy rain has flooded temporary shelters used by Palestinians displaced during Israel's war with Hamas.