Search for dark matter annihilation in the earth using the ANTARES neutrino telescope