Rich nations caused climate harm to poorer ones, study says