From sizing advice via selfies to robot stock-takers, online shopping behemoths have increasingly turned to artificial intelligence in a bid to stem the flow of bad-for-business clothes returns.