World leaders have joined together to condemn "political violence" after the attempted assassination of Donald Trump.