Limits on dark matter annihilation in the sun using the ANTARES neutrino telescope