Invariant Probability Distributions in Economic Models. A General Result