Seven people who ventured into a cave to look for gold have been trapped for a week after flash flooding blocked their exit.