Harry Potter star’s new biography confirms that he was diagnosed with dementia