Goldman Sachs posted first quarter profit that exceeded analysts’ expectations, while company-wide revenue missed on tougher market conditions for two of the firm’s main divisions.