The urge to belong is universal. So would a better understanding of it help tackle loneliness – and explain why stalkers, spree killers and jihadists turn their pain on others?