Former Scotland rugby captain Stuart Hogg has admitted abusing his estranged wife over the course of five years.