Did you installed Avast while logged in to an account with admin rights?
Have you already tried a repair of Avast?

Use the search function on this board for “rpc”, a lot of threads have info on it. You may find something usefull in one of them.