Voters in Scotland rejected independence from the United Kingdom in a historic vote with unprecedented turnout.