Effective field theory approach to string gas cosmology