D-term chaotic inflation in supergravity and leptogenesis