Princess Kate shared the snap to commemorate World Cancer Day