The Government has a “rogue algorithm” for determining housing targets, a Conservative former minister has said.