InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translation