A Hilbert state space model for the formation and dissolution of affinities among members in informal groups