Opposite Effects of Recent History on Perception and Decision