Real Madrid coach Carlo Ancelotti will go on trial for allegedly failing to declare income to Spain's tax office, facing a potential five-year jail term.