Proposal for a phase-coherent thermoelectric transistor