BT will become the sole provider to deliver public sector connectivity across Scotland through a six-year contract worth up to £350m.