Riverdale star Camila Mendes has revealed she spent years battling an eating disorder and it got worse while she was filming the first season of the hit TV show