After clashes in Mogadishu and political pressure, President Mohamed Abdullahi Mohamed said he would step aside.