Bank of America on Tuesday reported first-quarter earnings that topped analysts’ estimates for profit and revenue.