Horses can distinguish between happy and angry facial expressions on humans, a new study has shown for the first time.