On the τ-function of the Painlevé equations