On the effect of Pauli repulsion and dispersion on static molecular polarizabilities and hyperpolarizabilities in solution