The US and China have agreed a deal to reduce the use of hydrofluorocarbons, a group of potent greenhouse gases found in refrigerants.