Caveat (by @Did, 2018-09-12): This accepted answer is wrong. For unfathomable reasons, for years now, neither its author not the OP seem interested in correcting the situation -- hence the present warning.
divide by $|x-y| $ both members. you get
$$\frac{|f(x) - f(y)|}{|x-y|} \le M |x-y|^{\alpha - 1} \ \ (1)$$
now, since $(1)$ has to hold $\forall \ x, y$ then set $y = x + h$, with $h \to 0$
it becomes
$$|f'(x)| \le M \ |h|^{\alpha-1} = 0$$ ($\alpha - 1 > 0$ so there's no problem there)
So $|f'(x)| \le 0$, but of course also $|f'(x)| \ge 0$, it implies $|f'(x)| = 0$.
Hence $f'(x) = 0$
EDIT:
We can formalize it more. Let's do it.
$$\frac{|f(x) - f(y)|}{|x-y|} \le M |x-y|^{\alpha - 1} \ \ (1)$$
We can always set $x = y + h, h > 0$ since $(1)$ has to hold $\forall x, y$
Then
$$\frac{|f(y+h) - f(y)|}{h} \le M h^{\alpha - 1} \ \ (1)$$
(note $|h| = h$)
Now, let's suppose $f(y+h) - f(y) \ge 0 \ \ \ \ \ (2a) $
It implies that $f'(y) \ge 0$ (it suffice to divide $(2a)$ by $h$ and then taking the limit for $h \to 0$ to show it)
But it also implies, recalling (1) that
$$\frac{f(y+h) - f(y)}{h} \le 0 \Rightarrow f'(y) \le 0$$
(Again by taking the limit of both parts.)
But these last two results imply that $f'(y) = 0 $
We can do the exact same reasoning in the case that $f(y+h) - f(y) \le 0$
So again, in this case we find $f'(y) = 0$
Thus we have demonstrated that in both cases ($f(y+h) > f(y)$ and $f(y+h) < f(y)$) we have $f'(y) = 0$, so this has to hold $\forall y$
This implies $f = const$