Ahmed al-Sharaa has been named Syria’s transitional president after leading the rebel offensive that ousted Bashar al-Assad.