Anthony Stokes scored a hat-trick on his 100th league appearance for Celtic as they beat St Johnstone 3-0.