A study of more than 21,000 people over 40 found the association between coffee and cholesterol varied depending on if they were a man or woman