Substitute Leigh Griffiths helped himself to a quickfire second-half hat-trick as Celtic came from behind to beat Kilmarnock 4-1 at Parkhead and go eight points clear at the top of the Scottish Premiership.