Goldman Sachs leans on trading profits to boost capital, legal reserves