US President Donald Trump has raised the threat of pulling federal funds from the University of California at Berkeley after the institution cancelled a talk by provocateur Milo Yiannopoulos and put the campus on lockdown after intense protests against the planned speech.