Children of women who took antidepressants during the last two trimesters of their pregnancy have an increased risk of having autism spectrum disorder, a study suggests.