Lewis Hamilton has revealed the mental health challenges he faced in the aftermath of his controversial F1 2021 title defeat.