Hydrodynamical simulations of galaxy clusters in dark energy cosmologies - I. General properties