Effect of sex and gender on psychosocial aspects of prostate and breast cancer