Retail jobs in Scotland are at their lowest levels since at least 2010.