Thailand's army says it has not carried out a coup and its actions are temporary, a day after declaring martial law in the troubled kingdom.