UK has appointed Robert Hannigan as new chief for Government Communications Headquarters, to follow outgoing director Sir Iain Lobban.