Researchers uncover how prostate cancers are programmed to resist treatment