Precision measurement of the ratio of the charged kaon leptonic decay rates