Transport and concentration problems with interaction effects