Alastair Cook remains committed as England captain despite his side's defeat to India in the second Test at Lord's.