The allegations came, in part, from memos compiled by a former British intelligence operative, whose past work US intelligence officials consider credible. The FBI is investigating the credibility and accuracy of these allegations, which are based primarily on information from Russian sources, but has not confirmed many essential details in the memos about Mr. Trump.