Thousands flee militia fighting in Mogadishu