Data-driven path collective variables