From girlhood to adult, Eileen Lavery inspired her father. To mark the National Gallery’s acquisition of John Lavery’s Her First Communion Kenneth McConkey traces its artistic lineage