Prostate cancer patients on hormone therapy may be at increased risk of developing depression, a large study suggests.