Republican Ted Cruz won the Wisconsin presidential primary on Tuesday, dealing a blow to front-runner Donald Trump's hopes of amassing the delegates needed for the party's nomination ahead of the July convention and boosting the chances of a rare contested convention.