Countries have failed to reach a landmark agreement on tackling plastic pollution after more than two years of negotiations.