Optimal decision-making with time-varying evidence reliability