When the worst flooding in more than 50 years engulfed communities along the River Nile in South Sudan last year, thousands of people fled to higher ground, seeking refuge in an old army barracks.