Search for neutrino emission from gamma-ray flaring blazars with the ANTARES telescope