People in Wales who need support with their mental health will have access to same-day services as part of a new plan by the Welsh government.