Light and heavy hadron masses in a relativistic quark potential model with diquark clustering