Stellantis signaled that it is prepared to drop underperforming brands after a steep slump in first-half earnings.