The number of people rendered homeless by the devastating floods in Pakistan has risen to more than 4 million,