Symmetry constraints for dispersionless integrable equations and systems of hydrodynamic type