Study: Early humans, apes had different diets