Country hit by record rainfall that followed Mediterranean storm with similarities to tropical cyclone