Somali president in poll U-turn to stop Mogadishu clashes