Russian President Vladimir Putin has agreed for Russia and Ukraine to stop hitting each other's energy infrastructure for 30 days, the Kremlin says.