In exercising its functions under sections 1 and 2, a local authority must have regard to guidance given by the Welsh Ministers.