Bryson DeChambeau was given a two-shot penalty after inadvertently improving his lie in thick rough on the fifth hole at The Open.