The example of a hereditary risk factor from the provided options is:
having fair skin that is prone to sunburn.
This is because fair skin is often influenced by genetic factors, while the other options (smoking, eating junk food, being a couch potato) are primarily lifestyle choices.