ISLAMABAD, Pakistan — With flooding affecting a fifth of Pakistan and worsening by the day, United Nations officials said Monday that a shortage of aid funds was leaving some six million people, the majority of them children and infants, at risk of potentially lethal diseases borne by dirty water.