The robust component structure of dense regular graphs