Bank of Scotland will be hit with a host of closures over the next two years.