Brightest cluster galaxies in cosmological simulations: achievements and limitations of active galactic nuclei feedback models