The attempted assassination of Donald Trump has raised questions about the Secret Service's record.