Defence deal is the latest example of deepening ties between Canberra and Tokyo amid shared concerns over China's rise.