Donald Trump won North Carolina and its 15 electoral votes by claiming seven rural counties that had voted for Barack Obama in 2012.