Cohomology of a flag variety as a Yangian Bethe algebra