A state of emergency has been issued for parts of Sudan after floodwaters swept through the southern part of the country, displacing more than 400,000 people.