Two-time Grand Slam champion Simona Halep is banned for four years following breaches of tennis doping rules.