Garda boss undertakes not to access information on newspaper editor’s phone