Stochastic magnetic and ambipolar electric fields in the plasma edge region of RFX