Supercongruences for rigid Calabi--Yau threefolds of hypergeometric type