Global dynamics of a vector-borne disease model with infection ages and general incidence rates