Measurement of Double Beta Decay Half-life of $^{136}$Xe with the PandaX-4T Detector