OPEC agrees to trim production