Dust and metal column densities in GRB host galaxies