Republican Donald Trump and Democrat Bernie Sanders have won the presidential primary election in New Hampshire, according to projections based on exit polls and early results.