The nation’s intelligence chief continued on Thursday to harden his warnings about the cyberthreat from Russia and expressed surprise at hearing that President Trump planned to invite its leader, President Vladimir V. Putin, to the White House, but promised to deliver a candid assessment to Mr. Trump about the dangers of such a visit.