Study shows impact of rare diseases on NHS