An abandoned historic house near Sherwood Forest, once serving as the village doctor's surgery, has been sold for £745,000 at auction.