G20 agrees on framework for debt restructuring to help poorer countries