World number one Jannik Sinner has accepted a three-month ban after a settlement with the World Anti-Doping Agency (WADA).