More and more, it’s clear these platforms create divisions, exploit our insecurities and risk our health, says novelist Matt Haig