Prior preferences beneficially influence social and non-social learning