Pistols, a deactivated World War I machine gun and a rifle were among items lost or stolen from the Ministry of Defence (MoD) in the last two years.