Stability of capillary hypersurfaces in a Euclidean ball