St Johnstone manager Steve Lomas has been ordered to serve an eight-match touchline ban by the Scottish Football Association.