On the nilpotency of rational H-spaces