Goldman Sachs beats on profit and revenue as stock trading and investment banking boost results