Lionel Messi will be prosecuted for alleged tax evasion, a Spanish judge has ruled, despite prosecutors' recommendation that only Messi's father be tried.