Does it need to? Did YikYak need to? The death of anonymity was pretty much the death of YikYak.
Letting people talk, harassment and all seems to be the way to go. It's an opt in thing, so if you don't like it just uninstall or ignore a few users. Maybe I'm just a sucker for a good cesspool sometimes.
I have it on good sources that they dropped anonymity not because of harassment, but because of the history of anonymous apps fizzling out. Anonymous apps generally fail to generate sustainable, long-term growth.