GoPro revenue falls 31% as hardware slump deepens losses