Bacteria living on the skin of frogs could save them from a deadly virus, new research suggests.