Williamson and Latham keep India at bay