The Princess of Wales spent time with young people receiving care from a children’s hospice she described as a “lifeline”.