A Principled Approach to Learning Stochastic Representations for Privacy in Deep Neural Inference