Inferring sources of suboptimality in perceptual decision making using a causal inference task