John F Kennedy's granddaughter has revealed she has terminal cancer, making the announcement on the anniversary of the ex-US president's assassination.