There are at least three interesting features of the problem as currently stated. First of all, it specifies that $x, y \ge 0$. Secondly, apart from $x,y \ge 0$, it specifies neither the domain nor the codomain. And finally, it does not ask for continuity.
We will have to narrow down the question in order to answer it, but we will narrow it down a tiny bit less than in the very thorough answer by Arturo Magidin.
Let's decide that the domain consists of the non-negative reals. In order for the answer $x^p$ to make sense, we cannot have the codomain be $(0,\infty)$, we must at least insist on $[0,\infty)$. (After all, we are told that the functional equation holds for $x,y \ge 0$.)
Thus the functional equation admits the solution $f$ identically equal to $0$.
Assume that the codomain of $f$ is the reals. By putting $x=y=\sqrt{t}$, we can see that $f(t)=(f(\sqrt{t}))^2$, so $f(t)$ is always $\ge 0$.
Suppose that there is a non-zero $a$ such that $f(a)=0$. Then from the functional equation, we find that $f(x)=f(a)f(x/a)=0$, and therefore $f$ is identically $0$.
Thus from now on we can confine attention to functions $f$ such that $f(x)>0$ when $x>0$. It follows that for $x>0$, we can take logarithms freely and proceed along the lines suggested in the hint.
When looking at functional equations, particularly in a contest setting, it is useful to identify $f(0)$. From the fact that $f(0)=(f(0))^2$, we see that $f(0)=0$ or $f(0)=1$. But if $f(0)=1$, then from $f(0 \cdot x)=f(0)f(x)$ we conclude that $f(x)=1$. Thus apart from the case $f$ identically equal to $1$, which is presumably covered by the case $p=0$ of the answer, we can take $f(0)=0$.
Note however that if we forget about continuity, the answer $f(0)=0$, $f(x)=1$ if $x \ne 0$ is perfectly fine. And forgetting about continuity, at least at $0$, has certain advantages. For instance, in the solution by Arturo Magidin, the question of whether $\ln(f(e))$ can be negative is not directly addressed. The answer is that if we specify continuity for $x>0$, but not necessarily at $0$, then $\ln(f(e))$ can be negative.
The conclusion is that the full list of functions that are continuous for $x>0$, but not necessarily at $0$, and that satisfy the functional equation, consists of the following functions.
$1$. The identically $0$ function and the identically $1$ function.
$2$. The function which is $0$ at $0$ and $1$ elsewhere.
$3$. The functions $f(x)=x^p$, where $p$ is positive.
$4$. The functions $f(0)=0$, $f(x)=x^p$ for $x>0$, where $p$ is negative.
Comment: The only Lebesgue measurable functions that satisfy the Cauchy functional equation are the obvious ones, so the above list gives a list of all measurable functions that satisfy the functional equation of the problem. And if, for example, we are willing to jettison the Axiom of Choice in favour of the Axiom of Determinacy, then all functions from $\mathbb{R}$ to $\mathbb{R}$ are Lebesgue measurable, and then the above is a complete list.