A Leigh Griffiths hat-trick fired Celtic closer to the Scottish Premiership title as the league leaders beat Dundee United 3-0 at Tannadice.