The Duke of Sussex has said he felt an impact on his mental health after he moved to Canada.