Power has been handed over to an elected assembly that will now appoint a new president and government