Scottish economy records decline, for first time this year,