Valves preventing penetration of air in the outlet of containers for liquids