Non-perturbative two-dimensional quantum gravity, KdV Hierarchy and solutions of the string equations