The election risks tearing us apart even further. Here’s what our parties must do, says former prime minister Gordon Brown