purpose (based on their actual state of mind) of the taxpayer and payer of substantial dividend was not to avoid capital gain