Hamsters produce their own natural oils to maintain the condition of their fur and will spend a long time grooming. So I would not recommend bathing a hamster since it will not enjoy it and bathing may make the hamster's fur look worse. If your hamster smells bad then you should clean the
cage more frequently.
In the case of dwarf hamsters, you can provide them with a bowl filled up with Chincilla sand. Most dwarf hamsters love rolling in it and this will also keep their coats shiny!