Dozens of financial groups to pay nearly $400mn in SEC texting probe