TasTe: Teaching Large Language Models to Translate through Self-Reflection