Automatic can sealing machine with waterproof function