Graphical Hedonic Games of Bounded Treewidth