JPMorgan beats Wall Street’s targets with record quarterly profits, but markets revenue slumped