Otherwise sounds like you have a broken or clogged drain valve.
Water left in washing machine. Above the inlet will be an H or the word Hot. By the way water can remain in the tank because of the overload of linens. Try leaving the top open after every wash so that anything left inside will dry up.
For top-loading washers that dont lock a faulty lid switch sends the message to. Check the lid switch and sensor. The error code is displayed when the washer takes more than eight minutes to drain but may just be a glitch.
Id suggest you call a home applicance technician. For one if you have recently installed the machine the installers may not have installed one of the hoses properly. This will prevent all the water from leaving your washing machine creating that tell tale pool.
Pin down the problem by unplugging the machine and opening the cabinet so you can investigate the source of the leak. Water drains out as a washing machine spins after washing or rinsing clothes. Diagnosing the Problem Start with the Obvious Step 1.
There will always be a little water left over to keep the seals wet but from the description you give there is to much water left. Carefully pull the washer away from the wall and examine the drain. Determining if the washing machine pump is working is key to the first step.
If your washing machine detergent drawer is filling up with water it could be caused by the nozzles being blocked. Mould occurs because more people wash in cold water which doesnt get rid of mould and washing machine designs can allow water to sit in the seal promoting mould growth. There is one thing we might try first if you dont mind a little do-it-yourself.