A surge in gold imports that widened India’s trade deficit to a record last month and pushed the rupee to an all-time low was due to an error in calculation, according to people with knowledge of the matter.Officials double-counted gold shipments in warehouses following a change in methodology in July, the people said, asking not to be identified ahead of …