Euclid preparation: III. Galaxy cluster detection in the wide photometric survey, performance and algorithm selection