World number one Jannik Sinner has accepted an immediate three-month ban from tennis for a doping infringement.