Association between past viral infections and cancer