Cardiff University researchers found playing with dolls helped both boys and girls improve empathy and understanding of other people's views.