Fundamental protective mechanisms of face masks against droplet infections