how does substance abuse affect mental health