Families who fled to makeshift camps were forced to scavenge for scarce food in conditions that aid agencies warned would expose thousands to outbreaks of disease.