You're looking for Psychohistorical Crisis by Donald Kingsbury. It takes place after the second galactic empire came into being, dealing with a crisis that is both a logical consequence of psychohistory and its achilles' heel, and you won't find any wormholes (or robots) in the book. PS - I see the recommendation has already been made. Twice! Well, now it's 3 times.