Three young men spent the equivalent of a six-month prison sentence behind bars because they were “nosy” and curious about the summer riots, York Crown Court heard.