Theory of non-propagating surface-wave solitons