Physicochemical principles that regulate the competition between functional and dysfunctional association of proteins