How monkeys mirror human irrationality