Mila Kunis confirms she quit social media after things took an “ugly” turn