ترهات is the plural of the word "ترهات"
ترهات=Ridiculous thing that waste your time,invaluable thing to do
ألهو=it's the verb of the noun"اللهو" and it means means to play
so the meaning of "ألهو بالترهات"would mean ...playing with silly things,or do Ridicules things that waste your time,or spend your time doing invaluable things