Sudanese officials say the military and its allies have taken back the strategic city of Wad Medani more than a year after the Rapid Support Forces seized it.