Supreme Court acquits convicted attempted murderer after ‘miscarriage of justice’