Peloton co-founder and chief executive John Foley will step down as the company plans to cut thousands of jobs after…