A London man has made a "miraculous" recovery after nearly drowning and being left without a pulse for up to an hour.