Endogenous association in contests with inequality effects of status