The UK government has issued a warning to travellers visiting Peru after the country declared a state of emergency amid a recent crime surge.