Secondary flow in contour currents controls the formation of moat-drift contourite systems