People in violence-stricken Venezuela are trading in their guns for much-needed electrical household gadgets under an official scheme, the government says.