Syria's president has said his country will "defend its stability and territorial integrity" after rebels reportedly took control of most of the country's second-largest city Aleppo.