Tay, Microsoft’s social media chat bot, quickly became a testing ground for Internet trolls who lassoed the program with weird and hateful messages