Donald Trump declared victory in the US election as he hailed a “golden age” for America.