Brazil's President, Michel Temer, has pledged to take legal action to suspend an investigation into allegations he was involved in a corruption scandal that has engulfed national meat giant JBS.