O2 has issued a warning about a new text message scam that attempts to trick people into handing over their account details.