Most likely caused by a low refrigerant charge. The air conditioning system works on high pressure if the pressure drops just a little the air conditioning efficiency drops dramatically. You will have to have the pressure checked, refrigerant added and or any leaks in the system repaired.