World number one Jannik Sinner has accepted an immediate three-month ban from tennis after reaching a settlement with the World Anti-Doping Agency over his two positive drug tests last year.