Researchers say they have worked out the meaning of the gestures that wild chimpanzees use to communicate.