On crossed product algebras arising from weak cocycles