Denote by $f_{\delta}(x) = \frac{1}{|B_{\delta}(x)|} \int_{B_{\delta}(x)} f$ the scale $\delta$ mean of $f$ centered at $x$.
Let $\epsilon > 0$, then there exists $\delta > 0$ such that
$$ \operatorname{esssup}_{y,z\in B_{\delta}(x)} |f(y) - f(z)| < \epsilon \tag{E}$$
Given $\delta_1, \delta_2 < \delta$, we can take averages over $y\in B_{\delta_1}(x)$ and $z\in B_{\delta_2}(x)$, to find
$$ | f_{\delta_1}(x) - f_{\delta_2}(x) | < \epsilon $$
This shows that as $\delta\to 0$ the net $f_\delta(x)$ is Cauchy, and hence converges. Let
$$ g(x) = \lim_{\delta\to 0} f_{\delta}(x) $$
I claim that $g$ is continuous.
Let $\epsilon > 0$, and $\delta > 0$ such that (E) holds. For $y \in B_{\delta}(x)$, choose $\delta'$ such that $B_{\delta'}(y)\subseteq B_{\delta}(x)$ and $|f_{\delta'}(y) - g(y)| < \epsilon$. Choose $\delta'' < \delta$ such that $|f_{\delta''}(x) - g(x)| < \epsilon$. Then
$$ |g(x) - g(y)| \leq |f_{\delta'}(y) - f_{\delta''}(x)| + |g(y) - f_{\delta'}(y)| + |g(x) - f_{\delta''}(x)| < 3 \epsilon$$
The latter two terms are $ < \epsilon$ by convergence of $f_{\delta}$ to $g$. The first term is $<\epsilon$ because it is obtained by averaging (E), and that $B_{\delta'}(y)$ and $B_{\delta''}(x)$ are both contained in $B_{\delta}(x)$ by assumption.
Finally, we have that $g = f$ a.e. by Lebesgue differentiation.