Impact of sex, body mass index and initial pathologic diagnosis age on the incidence and prognosis of different types of cancer