Ahmed al-Sharaa has been named "transitional" president after leading the overthrow of the Assad regime.