A cluster algebra approach to q-characters of Kirillov-Reshetikhin modules