Peloton reported a wider-than-expected loss and a steeper decline in revenue than analysts projected, while offering a weak holiday-quarter outlook.