An Algorithm for the Reconstruction of Neutrino-induced Showers in the ANTARES Neutrino Telescope