A Bayesian neural network predicts the dissolution of compact planetary systems