Pakistani television footage and photographs taken from helicopters showed people clinging to the walls and rooftops of damaged houses as water rushed through villages, with waterborne diseases emerging as a threat to survivors.