Learning a Formally Verified Control Barrier Function in Stochastic Environment