Latitudinal variation of helicity of photospheric magnetic fields