US stocks closed at all-time highs as JPMorgan Chase and Wells Fargo rallied following better-than-expected profit reports.