Chimpanzees carry out tasks better when they are watched by others - just like many people do at work - a new study has suggested.