Soon enough, the iPhone in your pocket could also automatically detect mental health issues like depression, anxiety and cognitive decline—all based on the daily activity data already gathered by the device.