Chimpanzees and bonobos react emotionally – sometimes appearing to throw “tantrums” – when they take risks that fail to pay off, say scientists.