Study of leptonic and semileptonic kaon decays at CERN