The distribution of weighted sums of the Liouville function and Pólyaʼs conjecture