Twitter has sent warnings to a number of users that their accounts may have been hacked by "state-sponsored actors".