Presidential frontrunner Donald Trump has said halting the spread of Islamic extremism would be a priority of his administration if he is elected president.