Study warns AI chatbots can pose risks when used for medical advice