Construction of positive definite cubature formulae and approximation of functions via Voronoi tessellations