Simultaneous Contact Selection and Planning for Contact-Rich Manipulation with Cascaded Optimization