Renault has said it would stay in Formula One racing next season, ending speculation that the team may be sold.