What does the word gowk mean in scottish?

A foolish person