Harnessing the Power of IoT and Artificial Intelligence for Effective Flood Mitigation