Syrian army forces have taken control of the Kurdish-dominated districts in Aleppo after a ceasefire was announced.