VERY WIDE BINARIES AND OTHER COMOVING STELLAR COMPANIONS: A BAYESIAN ANALYSIS OF THE HIPPARCOS CATALOGUE