Islamic militants gaining the upper hand in Mogadishu — UN report