Ugandan government, rebels agree to ceasefire