Securing inactive oil and gas wells could cost the US $30bn, study finds