An investigation of the effect of hormonal medications, sex hormones, and inflammatory factors on cancer risk