UK supermarket group Wm Morrison has announced that it has exchanged contracts with discount retailer Lidl to sell the Safeway store in Dewsbury, West Yorkshire.