Twitter must reveal the identity behind two parody accounts, the high court rules.