A drug commonly prescribed for people with high cholesterol may also be effective in treating prostate cancer, according to new research.