Goldman Sachs posts Q2 earnings beat as stock trading surges