Trump 'losing control of basic functions' in court 'consistent with dementia'