Residents of a market town in Hampshire have warned against a new text message scam targeting elderly people.