Brazil beefs up security ahead of protests