Trump “was fascinated by what the C.I.A. had learned about his international counterparts’ supposed extramarital affairs — not because he was going to confront them with the information, former officials said, but rather because he found it titillating.”