Reports of rape and attempted rape have increased by 9% in the past year, figures show.