Time-varying beta: a boundedly rational equilibrium approach