After weeks of anti-government protests in Venezuela in which 39 people have been killed, the administration and opposition agree to formal talks.