Bank of America beat estimates for quarterly profit on Wednesday, as the loan book of the country’s second-largest lender benefited from a healthy economy. Consumer banking has held up for the big Wall Street banks that have reported second-quarter results this week, cushioning a blow from weakness in trading and advisory businesses.