Vortex-ring model of the superfluid λ transition