The ex-New Hampshire Hospital patient who officials believe is behind a massive data breach affecting 15,000 people told investigators he copied the information because he was “bored and not happy being in the hospital,” according to a newly unsealed affidavit.