Theory of elasticity of amorphous networks: effect of constraints along chains