A splitting theorem for Riemannian manifolds of generalised Ricci-Hessian type