Time-dependent search for neutrino emission from X-ray binaries with the ANTARES telescope