Young carers are missing more than a month of the school year due to their caring responsibilities, research has found.