The effect of environment on the structure of disc galaxies