Israeli Prime Minister Benjamin Netanyahu has announced for the first time that he has undergone treatment for a malignant prostate tumour.