Depression could be spotted MONTHS before a formal diagnosis by algorithm scanning social media