When one cause casts doubt on another: A normative analysis of discounting in causal attribution