England captain Alastair Cook thought his side's poor first innings cost them as India's claimed a nine-wicket victory in Ahmedabad.