Factors influencing aggregation of macromolecules in solution