Thickness-tunable magnetic and electronic transport properties of the quasi-two-dimensional van der Waals ferromagnet Co0.27Ta