The man accused of attempting to assassinate Donald Trump has pleaded not guilty to all charges during his first court appearance.