One of the most prominent Democrats in Congress has written to the White House doctor demanding Donald Trump take a cognitive test.