Investigations into the attempted assassination of Donald Trump in July have revealed striking security lapses