Essays on Social Groups: Inequality, Influence and the Structure of Interactions