Belarus president's main rival detained in crackdown before election