Orbital stability of systems of closely-spaced planets