Britain’s Prince William has concluded a three-week attachment with the country’s security and intelligence agencies MI5, MI6 and GCHQ, his office said on Sunday.