GenCHiP: Generating Robot Policy Code for High-Precision and Contact-Rich Manipulation Tasks