Defeat for ruling Congress party across Indian states heartens investors, pushing market up to record high, writes Jules Gray