HAMLET: Switch your Vision-Language-Action Model into a History-Aware Policy