Bank of America plans to open 165 new branches by the end of 2026, saying many customers prefer physical spaces in the age of online banking.