Confronting hybrid inflation in supergravity with CMB data