Australia’s highest-valued private software companies are making big investments to position themselves for the artificial intelligence era, leading to signs of strain on their balance sheets.