A sailing-mad schoolboy hanged himself by accident after tying the strap of a laptop bag given to him by his father next to his bunk bed, an inquest heard.