Measuring the Hubble constant from Ryle Telescope and X-ray observations, with application to Abell 1413