The Islamist forces once in control of much of Somalia are crumbling faster than anyone expected and beat a hasty retreat back to their stronghold in Mogadishu , Somalia 's battle-scarred capital , on Tuesday .