Prosecutors claim to have caught teenage mastermind behind Twitter hack