NIHAO project II: Halo shape, phase-space density and velocity distribution of dark matter in galaxy formation simulations