Sudan's military has regained its grip on Khartoum, retaking more key government buildings a day after it gained control of the capital's Republican Palace.