A Mass Minimizing Flow for Real-Valued Flat Chains with Applications to Transport Networks