Are you aware of the reaction of an alkene with bromine (in an organic solvent, and in water)? If yes, then if you notice, in the mechanism some intermediate is formed which the hydroxy group does not like (
)...
Hint:
The hydroxy group (more specifically, the oxygen of the hydroxy group) can behave as a nucleophile, so where does that leave the situation now?