Nicola Sturgeon warns of risk of 'communities left behind' by new technology