Thermodynamic geometry and Joule-Thomson expansion of black holes in modified theories of gravity