Define $\varphi(h) = \frac{f(2h) - f(h)}{h}$ for $h \neq 0$ and let $\varphi(0) = \lim_{h\to 0}\varphi(h)$. Then notice that for $h \neq 0$ and for $N \geq 1$,
$$ \frac{f(h) - f(2^{-N}h)}{h} = \sum_{k=1}^{N-1} 2^{-k} \varphi(2^{-k}h) + 2^{-N}\varphi(2^{-N}h). \tag{*} $$
By the construction we know that $\varphi$ is continuous. Taking $N\to\infty$, this converges to
$$ \frac{f(h) - f(0)}{h} = \sum_{k=1}^{\infty} 2^{-k}\varphi(2^{-k}h) $$
Moreover, for any $\delta > 0$, Weierstrass $M$-test tells that this convergence is in fact uniform over the set $[-\delta, \delta]\setminus\{0\}$. Thus, as $h \to 0$ we can interchange the order of the infinite sum and the limit to find that
$$ \lim_{h\to0} \sum_{k=1}^{\infty} 2^{-k}\varphi(2^{-k}h)
= \sum_{k=1}^{\infty} \lim_{h\to0} 2^{-k}\varphi(2^{-k}h)
= \varphi(0) $$
Therefore $f$ is differentiable at $0$ with $f'(0) = \varphi(0)$ as desired.