Lewis Hamilton could face a grid penalty at the Hungarian Grand Prix following a post-qualifying investigation for impeding Oscar Piastri.