Glazed Ham with Cranberries and Rosemary