More than a million homes have been destroyed as Pakistan is experiencing historic rain and flooding, according to officials.