Platform for open-water swimming competition at Rio collapses