A unified fixed point approach to study the existence and uniqueness of solutions to the generalized stochastic functional equation emerging in the psychological theory of learning