A man is alleged to have impersonated a police officer and scammed a pensioner out of £6,000.