A law firm says it will pursue “substantial” compensation for up to 10 million Optus customers whose data was exposed in the recent hack.