NBA veteran JR Smith says he was in a “very depressed state” during part of his 20-month absence from the league