Hierarchical inference as a source of human biases