Man acquitted of wifes murder after 7 years in jail, court says prosecution failed to prove victim was fit to give dying declaration