Peloton is replacing its CEO, cutting jobs and reining in ambitious expansion plans after badly misjudging the staying power of the exercise-at-home trend that propelled its sales early in the pandemic. John Foley first pitched the idea for Peloton in 2011, hoping to disrupt the industry. He will give up the CEO position and become…