Neural Population Geometry Reveals the Role of Stochasticity in Robust Perception