Average age of information with hybrid ARQ under a resource constraint