HanoiT: Enhancing Context-aware Translation via Selective Context