Hundreds of thousands of people had taken shelter on raised bamboo stilts and on mud embankments, some even on rooftops of their mud-and-straw huts waiting to be rescued, officials said.