The Duchy of Cornwall has agreed to sell two Herefordshire farms covering more than 600 acres.