David Cameron’s offshore dealings were politically embarrassing and awkwardly profitable