The company’s profit increased 11 percent to $24.7 billion, beating Wall Street’s expectations and its own predictions.