Scientists say their study shows how animals are displaying a similar response to how humans react to a set-back