'Historic' deal to protect high seas agreed by UN member states