Voters in Scotland have decided to stay in the UK, saying no to the plan to secede.