A selection principle for weak KAM solutions via Freidlin-Wentzell large deviation principle of invariant measures