The last bank in Richmond, North Yorkshire, is one of 18 branch closures announced by Barclays.