Donald Trump accepted the Republican Party’s nomination to run for president in a third consecutive election, giving an unusually sombre acceptance speech in which he spoke about his surviving a recent assassination attempt.