(Reuters) - Goldman Sachs Inc on Wednesday posted its first quarterly loss in six years on a huge tax charge but adjusted profit trumped analysts' estimates, as strength in the investment banking business cushioned the blow from a slump in trading.