US retail banks slashed their branch networks and trimmed headcount in the first half of the year in a bet that much of the foot traffic that went digital during pandemic lockdowns will never return.