Head of stats Canada resigns