Botched finances have left armed forces accommodation in a “crippled state” which the government will address, the defence secretary has said.