Goldman Sachs cuts quarterly earnings citing legal provisions