Sudan's military has declared it has seized the presidential palace off rival paramilitary forces after nearly two years of fighting.