Measurement of the ratio of branching fractions of the decays Λ b0 → ψ(2S)Λ and Λ b0 → J/ψΛ