Goats can differentiate between human facial expressions and prefer to interact with happy people, according to a new study.