Corporate financing and investment policies with patent litigation