Zimbabwe opposition agrees to join government