American Express posted better-than-expected second-quarter profits as the blue-chip credit card firm slashed expenses.