It sounds like it's resetting - is that the same as what it does when you first insert the battery? It could be a solder bridge between two circuit board tracks.
But if it's brand new, don't mess with it - just take it straight back and get a refund or replacement. Fixing it would undoubtedly be fascinating, instructive and highly satisfying, but if you don't succeed you'll probably void the warranty.