Cole Tomas Allen was officially charged with trying to assassinate US President Donald Trump.