Solution to the Riemann problem for a five-equation model of multiphase flows in non-conservative form