Time-inconsistent environmental policy and optimal delegation