One in five young people are using artificial intelligence for advice about their mental health, a US study has found.