A woman caught with cannabis in a police raid says she uses it to cope with a chronic pain disorder.