Scottish Labour agrees reform plan