Swiss banking giant UPS Bank of America Corp.’s second-quarter earnings beat expectations on Wednesday, amid moves to cut costs and…