St Johnstone moved up to second in the Scottish Premiership table after easing past Ross County 4-0 at McDiarmid Park.