Bacteria harness the lotus effect to protect themselves