Disgraced Danish cyclist Michael Rasmussen has been given a two-year ban after admitting to doping throughout his professional career.