Water leak detection and real-time metering