Goldman Sachs beat fourth-quarter profit expectations by a wide margin, amid particular strength in the investment banking and equities businesses, but the stock fell as revenue disappointed.