Scottish First Minister Nicola Sturgeon says her country must have the option to reconsider independence after the UK voted to leave the European Union.