Olympic athletes in Rio de Janeiro will have to pay for air conditioning in their bedrooms after a $520m budget cut.