On the estimation of average treatment effects with right-censored time to event outcome and competing risks