Planning with Goal-Conditioned Policies