Islamist elected Somali president