The role of structural transformations in magnetic behaviour of fluorosilicates of 3d transition metals