A warning has been issued to Wrexham residents after one received a phone call from a man pretending to be a police officer.