Donald Trump treated classified information like “his own shiny toy”, his former White House press secretary claims.