Pair of Hertfordshire pharmacies sold after 40 years of ownership