Teenage boy, 17, is hauled before court and given criminal record because he slammed his bedroom door in row with his mother who called police