Australia signs $50bn submarine contract with France, ends 2-year squabble