Dimensional dependence of weak localization corrections and spin relaxation in quantum wires with Rashba spin-orbit coupling