From droughts to disease, coffee and chocolate are under threat, but scientists and farmers are working together to keep these daily treats on the table.