Donald Trump said the US was in a moment of crisis, as he accepted the Republican nomination for president.