India and the US have signed defence, energy and telecoms deals but failed to reach a trade accord.