Can the use of Transponder on the ground be the cause of a TCAS TA/RA or is there a special "ground mode"?
A Mode S transponder includes an on-the-ground status flag in its reply. Thus if you have Mode S, you can simply leave it on.
A Mode A/C only transponder has no such output, so it should be switched on only for departure and off again after landing.