Up to 40,000 flee rebel assault in central Sudan: U.N.