Leigh Griffiths scored a 25-yard free-kick to clinch a 1-0 victory for Celtic against Ross County in Dingwall.