J.P. Morgan Chase reported record first-quarter profit and revenue that exceeded analysts’ expectations as the bank benefited from higher interest rates.