Phenomenology of weak interactions from lattice QCD