Gravitational waves and proton decay: complementary windows into GUTs