Contributions of prompt and non-prompt $\rm D^{0}$ estimated with the cut-variation method