BofA tops estimates as M&A surge boosts investment-banking fees