WASHINGTON — President Trump on Jan. 12 unleashed an extended assault on the F.B.I. and the special counsel’s investigation, knitting together a comprehensive alternative story in which he had been framed by disgraced “losers” at the bureau’s highest levels.