Search for E(5) symmetry in nuclei: The Ru isotopes