Man accused of beating father with pipe, hammer