It is the first time the National Institute for Health and Care Excellence (Nice) has recommended digital therapies for these conditions