Children under eight-years-old are less likely than adults to see discrimination as harmful, suggests a new study.