Former President Donald Trump has signed an executive order aimed at preventing states from enforcing their own artificial intelligence regulations.