Reversible ratchets in the presence of thermal fluctuations