Amherst Securities Group LP and Pierpont Securities LLC are set to merge in a deal aimed at creating a bigger player in underwriting and trading mortgage-related securities, businesses that some larger banks have retreated from in recent years. The companies confirmed the plan in a statement Tuesday. They declined to disclose terms of the deal.