The question is as follows:
Let $G$ be a finite and abelian group that satisfies $$\#\{g\in G\,\vert\, g^p=e\}\leq p$$ for all $p\in\mathbb{N}$, where $e$ is the identity element in $G$. Prove that $G$ is a cyclic group.
It doesn't seem difficult, but I have hit a wall and I don't know where to start. Any help or hit would be highly appreciated!