Energy-selective confinement of fusion-born alpha particles during internal relaxations in a tokamak plasma