Barack Obama has reduced the prison sentence of whistleblower, Chelsea Manning, in one of his last acts as US president.