Macaques have learned to eat soil to avert gut irritation caused by salty and sugary snacks, researchers believe