Twitter has warned its 330 million users to change their passwords after a glitch exposed some in plain text on its internal network.