Mourners have gathered in the Aberdeenshire village of Strichen for the funeral of the former first minister.