NASA's Perseverance rover has uncovered evidence of groundwater, ancient lakes and hydrothermal activity, revealing Mars had a complex watery past.