The dynamical parallax of 17 Cygni