Mayank Agarwal's maiden IPL ton in vain as RR beat KXIP by 4 wickets