As consumer habits change, banks are responding by closing branches.