It's touted as a treatment for pain, insomnia and anxiety, but certain people should think carefully before trying medical cannabis, experts warn.