Equilibrium consumption and portfolio decisions with stochastic discount rate and time-varying utility functions