South Africa head coach Rassie Erasmus has been banned for six matches by World Rugby over comments he made about match officials.