Peru raised interest rates for the first time in nearly four years to curb an inflation spike fueled by rising food and energy prices.