Slovakia’s world road race champion Peter Sagan will compete in the mountain bike event at the Rio Olympics, returning to the discipline in which he began his career.