Effects of mental health factors on young adult substance use