A $300 million offer by a Chinese company to buy an Australian builder is withdrawn on the back of advice that Treasurer Josh Frydenberg and the Foreign Investment Review Board will declare the transaction a risk to national security and contrary to Australia's interest.