A Cherry Hills Village mansion has sold for $17 million, setting a record for on-market home sales in the Denver metro area.