The Scottish government has granted consent for the world’s largest floating offshore windfarm to be developed off the coast of Peterhead.