Detection of a magnetic field on HD 108: clues to extreme magnetic braking and the Of?p phenomenon★