Students in activities less likely to engage in risky behavior, study says