Trading gains drive Goldman Sachs' profits sharply higher