VALES I: the molecular gas content in star-forming dusty H-ATLAS galaxies up to z = 0.35