Man pleads guilty in break-in at ex-girlfriend's house